home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / util / tsh091.zip / SCROLL.C < prev    next >
Text File  |  1994-03-06  |  1KB  |  43 lines

  1. /*
  2.  *  wsize - A program to show or change the limit on the history list
  3.  *        in a tkern window.
  4.  *
  5.  *  Copyright (C) 1994  Troy Rollo <troy@cbme.unsw.EDU.AU>
  6.  *
  7.  *  This program is free software; you can redistribute it and/or modify
  8.  *  it under the terms of the GNU General Public License as published by
  9.  *  the Free Software Foundation; either version 2 of the License, or
  10.  *  (at your option) any later version.
  11.  *
  12.  *  This program is distributed in the hope that it will be useful,
  13.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *  GNU General Public License for more details.
  16.  *
  17.  *  You should have received a copy of the GNU General Public License
  18.  *  along with this program; if not, write to the Free Software
  19.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  */
  21.  
  22. #include <stdio.h>
  23. #include <sys/ioctl.h>
  24. #include <sys/tkwin.h>
  25. #include <ctype.h>
  26. #include <stdlib.h>
  27.  
  28. int
  29. main(    int    argc,
  30.     char    **argv)
  31. {
  32.     struct    wio_parms parms;
  33.  
  34.     ioctl(0, WIOCGETPARMS, &parms);
  35.     if (argc == 2)
  36.     {
  37.         parms.wiop_scroll_lines = atoi(argv[1]);
  38.         ioctl(0, WIOCSETPARMS, &parms);
  39.     }
  40.     printf("Scroll Jump = %d\n", parms.wiop_scroll_lines);
  41.     return 0;
  42. }
  43.